<?php

    // TITLE: address
    // FILE: scafolding/viewAddress.php
    // AUTHOR: AUTOGEN
    // CREATED: 2015/02/18 11:14:28
    // DESCRIPTION: 
    // REQUIREMENTS: 

?>
<h2>address</h2>
<hr>

<input type="hidden" id="addressId" value="<?php echo $address->getId(); ?>">

<dl>
    <dt>street_1</dt>
	<dd><?php echo $address->getStreet1(); ?></dd>
<?php
    $street2 = $address->getStreeet2();
    $street3 = $address->getStreet3();
    if ($street2) {
?>
	<dt>street_2</dt>
	<dd><?php echo $street2(); ?></dd>
<?php
    }// end if street2
    if ($street3) {
?>
    <dt>street_3</dt>
	<dd><?php echo $street3(); ?></dd>
<?php
    }// end if street3
?>
    <dt>city</dt>
	<dd><?php echo $address->getCity(); ?></dd>
    <dt>state_id</dt>
	<dd><?php echo $address->getState()->getTitle(); ?></dd>
    <dt>zip</dt>
	<dd><?php echo $address->getZip(); ?></dd>
</dl>